<% content_for :action_nav do %>
  <ul id="act-nav">
    <li><%= link_to "Resend", :action => :resend, :id => @order %></li>
  </ul>
<% end %>

<%= render :partial => 'shared/order_details', :locals => {:order => @order} -%>

<table class="order-address">
  <tr>
    <th>Ship Address</th>
    <th>Bill Address</th>
  </tr>
  <tr>
    <td width="50%">
      <%= render :partial => 'address', :locals => {:address => @order.ship_address} -%>      
    </td>
    <td width="50%">
      <%= render :partial => 'address', :locals => {:address => @order.bill_address} -%>
    </td>
  </tr>
</table>
<table class="order-address">
  <tr>
    <th>Email</th>
  </tr>
  <tr>
    <td><%=in_place_editor_field :user, :email %></td>
  </tr>
</table>
<table class="order-address">
  <tr>
    <th>Transaction</th>
    <th>Date/Time</th>
  </tr>
  <% @order.txns.each do |t| %>
    <tr>
      <td><%=Txn::TxnType.from_value t.txn_type.to_i%></td>
      <td><%=t.created_at.to_s(:db)%></td>
    </tr>
  <% end %>
</table>
<%= link_to "Back", :controller => :orders %>